package com.awesome.spring.fallback;

import com.alibaba.csp.sentinel.slots.block.BlockException;

/**
 * SentinelControllerBlockHandler
 *
 * @author alex wu
 * @date 2023/10/08
 */
public class SentinelControllerBlockHandler {

    public static String userAgeBlockHandler(BlockException e) {
        return "被限流";
    }

    public static String userAgeFallback() {
        return "userAge 默认返回";
    }
}
